//***********************************************************************
//	File:		HealthPack.cpp
//	Author:		
//	Course:		SGP 1405
//	Purpose:	
//***********************************************************************
//***********************************************************************
//	Purposfully left blank for all comments regarding this file 
//	
//	
//	
//***********************************************************************



#include "HealthPack.h"

HealthPack::HealthPack(float posX, float posY)
{

	SetPosition(SGD::Point(posX, posY));
	m_hImage = SGD::GraphicsManager::GetInstance()->LoadTexture(
		L"reources/graphics/BF4_First_Aid_Pack.png");



}

void HealthPack::Update(float dt)
{
	Entity::Update(dt); 
}

void HealthPack::Render()
{

	SGD::GraphicsManager::GetInstance()->DrawTexture(m_hImage, GetPosition(), 0.0, SGD::Vector(0, 0), SGD::Color(), SGD::Size(16, 16));
}

void HealthPack::HandleCollision(const IEntity* pOther)
{
	Entity::HandleCollision(pOther);
}

void HealthPack::HandleEvent()
{

}

SGD::Rectangle HealthPack::GetRect() const
{
	return SGD::Rectangle{}; 
}

void HealthPack::Heal()
{

	pTarget->ModifyHealth(40);

}

